/* 基本页面样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    color: #333;
    display: flex;
    min-height: 100vh;
}

.container {
    margin-left: 260px; /* 留出侧边栏的空间 */
    padding: 30px;
    flex-grow: 1;
}

/* 侧边栏样式 */
.sidebar {
    width: 250px;
    background-color: #2c3e50;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    padding-top: 20px;
    padding-left: 20px;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
}

.sidebar h1 {
    font-size: 24px;
    color: #ecf0f1;
    margin-bottom: 30px;
}

.sidebar .btn {
    display: block;
    padding: 12px;
    margin-bottom: 15px;
    font-size: 18px;
    background-color: #3498db;
    color: white;
    text-align: center;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.3s;
}

.sidebar .btn:hover {
    background-color: #2980b9;
}

.sidebar .btn:active {
    background-color: #21618c;
}

.sidebar .btn-secondary {
    background-color: #7f8c8d;
}

.sidebar .btn-secondary:hover {
    background-color: #616a6b;
}

.sidebar .btn-warning {
    background-color: #f39c12;
}

.sidebar .btn-warning:hover {
    background-color: #e67e22;
}

/* 主体内容样式 */
.main-content {
    margin-left: 260px;
    padding: 30px;
    flex-grow: 1;
}

h1 {
    font-size: 28px;
    color: #333;
    margin-bottom: 30px;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    padding: 12px;
    text-align: left;
    border: 1px solid #ddd;
    background-color: #fff;
}

th {
    background-color: #3498db;
    color: white;
}

tr:hover {
    background-color: #f1f1f1;
}

/* 表单输入框样式 */
input[type="text"], input[type="email"], input[type="password"], textarea {
    width: 100%;
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background-color: #fff;
    margin-bottom: 20px;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* 按钮样式 */
.btn {
    padding: 10px 20px;
    font-size: 16px;
    background-color: #27ae60;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    margin: 5px;
    transition: background-color 0.3s;
}

.btn:hover {
    opacity: 0.8;
}

.btn-primary {
    background-color: #3498db;
}

.btn-primary:hover {
    background-color: #2980b9;
}

.btn-warning {
    background-color: #f39c12;
}

.btn-warning:hover {
    background-color: #e67e22;
}

.btn-secondary {
    background-color: #7f8c8d;
}

.btn-secondary:hover {
    background-color: #616a6b;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
        padding-left: 10px;
    }

    .sidebar h1 {
        font-size: 20px;
    }

    .main-content {
        margin-left: 0;
        padding: 15px;
    }

    h1 {
        font-size: 24px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    table {
        font-size: 14px;
    }

    .sidebar .btn {
        padding: 10px;
        font-size: 16px;
    }
}

/* 卡片样式 */
section {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

h2 {
    font-size: 22px;
    color: #333;
    margin-bottom: 20px;
}

/* 表单组的间隔 */
.form-group {
    margin-bottom: 20px;
}

/* 提交按钮 */
button[type="submit"] {
    background-color: #27ae60;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    border-radius: 5px;
}

button[type="submit"]:hover {
    background-color: #2ecc71;
}

/* 输入框聚焦时的样式 */
input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus, textarea:focus {
    border-color: #3498db;
    outline: none;
}

/* 取消按钮 */
a.btn-secondary {
    background-color: #7f8c8d;
    padding: 10px 20px;
    text-decoration: none;
    color: white;
}

a.btn-secondary:hover {
    background-color: #616a6b;
}

/* 顶部标题栏 */
h1, h2 {
    margin-bottom: 20px;
    font-weight: 600;
}

